(function(){
	window.shSetup = window.shSetup || {}; 
	shSetup.userCSS = shSetup.userCSS || "";
	shSetup.libs = shSetup.libs || 
		['shBrushGroovy.js', 'shBrushXml.js','shBrushJScript.js', 'shBrushBash.js', 'shBrushDiff.js', 'shBrushPython.js', 'shBrushSql.js',
		 'shBrushCpp.js', 'shBrushCss.js', 'shBrushJava.js', 'shBrushPhp.js', 'shBrushCSharp.js', 'shBrushPerl.js', 'shBrushRuby.js',
		 'shBrushPowerShell.js', 'shBrushVb.js', 'shBrushPlain.js', 'shBrushVb.js', 'shBrushJavaFX.js','shBrushAS3.js'];
	shSetup.path = shSetup.path || "http://alexgorbatchev.com/pub/sh/current/";
	shSetup.br =  shSetup.br === false ? false :true;
	shSetup.jQuery = (window.jQuery) ? true : false;

	var xLink = function(url) {
		document.write('<link href="'+url+'" rel="stylesheet" type="text/css" />');
	}
	var xScript = function(url) {
		document.write('<script src="'+url+'" type="text/javascript"></'+'script>');
	}

	xLink(shSetup.path + "styles/shCore.css");

	if (shSetup.userCSS) xLink(shSetup.userCSS);
	else xLink(shSetup.path + "styles/shThemeDefault.css");
	
	if (!shSetup.jQuery) xScript("http://ajax.microsoft.com/ajax/jquery/jquery-1.4.2.min.js");

	var path = shSetup.path + "scripts/";
	var files = shSetup.libs;
	files.unshift("shCore.js");

	for (var i=0; i < files.length ; i++)
	{
	 xScript(path+files[i]);
	}

	 xScript("http://tsyntax.googlecode.com/hg/dev/hooker.js");
})();